import axiosInstance from "./axios-instance";

let proxyPrefix = "";
if (process.env.NODE_ENV !== "production") {
  proxyPrefix = "/proxy/cd/cdzw/";
} else {
  proxyPrefix = "/cdzw/";
}

//删除家庭
export async function getCdWebInfo(params) {
  return await axiosInstance({
    method: "get",
    url: proxyPrefix + "public/admin.php/wc/getCdWebInfo",
    params,
  });
}

export async function getCdWebInfoNew(params) {
  return await axiosInstance({
    method: "get",
    url: proxyPrefix + "public/admin.php/wc/getCdWebInfoNew",
    params,
    noToast:true,
  });
}


export async function getWcHdData2Dev(params) {
  return await axiosInstance({
    method: "get",
    url: proxyPrefix + "public/admin.php/wc/getWcHdData2Dev",
    params,
    noToast:true,
  });
}